<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>马驮货</title>
    <script>
      /* 有一百匹马，驮一百担货，大马驮3担，中马驮2担，两只小马驮1担，问有大，中，小马各几匹？ */
      for (let dm = 0; dm <= 33; dm++) {
        for (let zm = 0; zm <= 50; zm++) {
          for (let xm = 0; xm <= 100; xm++) {
            if (dm + zm + xm == 100 && 3 * dm + 2 * zm + 0.5 * xm == 100) {
              console.log(dm, zm, xm)
            }
          }
        }
      }
    </script>
  </head>
  <body></body>
</html>
